package cn.tedu.shoot;

import java.awt.image.BufferedImage;
import java.util.Random;

public class BigAirplane extends FlyingObject implements Enemy,EnemyBullets{//继承extends
	private int speed;
	public BigAirplane(){
		super(66,89);
		speed = 2;
	}
	public void step() {
		y+=speed;
	}
int index = 1;
	public BufferedImage getImage() {
		if(isLife()) {
	      return Images.bigairplanes[0];
	      }else if(isDead()) {
				BufferedImage img =  Images.bigairplanes[index++];
				if(index>=Images.bigairplanes.length) {
				    state = REMOVE;
			     }
				return img;
			}
			return null;
		}
	public int getScore() {
		   return 3;
	   }
}
